package ch01.proxy;

/**
 * Created by zc on 2016/11/24.
 */
public class Proxy implements Subject {
    private Subject subject = null;

    public Proxy(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void request() {
        this.before();
        subject.request();
        this.after();
    }

    private void after(){

    }

    private void before(){

    }
}
